#include "aboutdialog.h"
#include "ui_aboutdialog.h"

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutDialog)
{
    ui->setupUi(this);
    setWindowTitle(tr("关于"));
    setModal(true);
//    ui->textEdit->setBackgroundRole(QPalette::Window);
//    ui->textEdit->setStyleSheet("QTextEdit { background: window }");
}

AboutDialog::~AboutDialog()
{
    delete ui;
}

void AboutDialog::on_btnOK_clicked()
{
    close();
}
